$this->mLocalFile; not $file
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 30 Aug 2008 21:55:50 +0000 (21:55 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 30 Aug 2008 21:55:50 +0000 (21:55 +0000)
includes/UploadFromBase.php

index 387b13a..81a60ce 100644 (file)
@@ -213,7 +213,7 @@ class UploadFromBase {
                
                # If the file existed before and was deleted, warn the user of this
                # Don't bother doing so if the file exists now, however
-               if( $this->mLocalFile->wasDeleted() && !$file->exists() )
+               if( $this->mLocalFile->wasDeleted() && !$this->mLocalFile->exists() )
                        $warning['filewasdeleted'] = true;
                        
                return $warning;